package org.xzx.cloud.ad.client;


import org.springframework.stereotype.Component;
import org.xzx.cloud.ad.client.vo.AdPlan;
import org.xzx.cloud.ad.client.vo.AdPlanGetRequest;
import org.xzx.cloud.ad.vo.CommonResponse;

import java.util.List;

/**
 * 调用 ad-sponsor 微服务失败时，熔断
 *
 * @author xzx
 */
@Component
public class SponsorClientHystrix implements SponsorClient {
    @Override
    public CommonResponse<List<AdPlan>> getAdPlansByFeign(AdPlanGetRequest request) {
        return new CommonResponse<>(-1, "ad-sponsor error");
    }
}
